#pragma once

#include"RBTree.h"

namespace bit
{
	template<class K,class V>
	class set
	{
	public:
		struct setofkey
		{
			const K& operator()(const K& key)
			{
				return key;
			}
		};
		void insert(const K& kv)
		{
			_s.insert(kv);
		}
		typedef typename RBTree<K, K, setofkey>::const_iterator iterator;
		typedef typename RBTree<K,K, setofkey>::const_iterator const_iterator;
		iterator begin() const
		{
			return _s.begin();
		}
		iterator end() const
		{
			return _s.end();
		}
	private:
		RBTree<K,K, setofkey> _s;
	};
}